// app.js
import './utils/util'
import './utils/http'
App({
    setToken(type, value) {
        this[type] = value
        wx.setStorageSync(type, value)
    },
    getToken(type = 'token') {
        return wx.getStorageSync(type)
    },
    // 任务的数据
      itemData: {
          counts: 13,
          page: 2,
          pageSize: 2,
          pages: 3,
          items: [
            {
              actualArrivalTime: '13:30', //开始时间
              actualDepartureTime: '14:00', //发车时间
              created: '14:10',  //创建时间
              driverId: '110',  //司机ID
              enablePickUp: true,  //是否可提货
              endAddress:{
                province:'湖北省',
                city:'孝感市',
                district:'孝南区'
              }, //目的机构地址
              endAgencyId: '220', //目的机构id
              finishHandover: '张三',  //对接人
              id: '1557211886558850',  //司机作业单ID
              planArrivalTime: '2022.05.04', //预计到达时间
              planDepartureTime: '14:45', //预计发车时间
              startAddress:{
                province:'湖北省',
                city:'武汉市',
                district:'黄陂区'
              },//起始地址
              startAgencyId: '330', //起始机构id
              startHandover: '李四', //提货对接人
              status: 1,  // 作业状态
              transportTaskId: '1665989068002979841', //运输任务ID
              mobile: '13011112222'
            }
          ]
        }
})
